import { Button, Modal } from 'antd';
import { useState } from 'react';
const App = (props) => {
  const { visible, onClose, onOk, title, children, width = 800 } = props;
  return (
    <Modal width={width} title={title} visible={visible} onOk={onOk} onCancel={onClose} {...props}>
      {children}
    </Modal>
  );
};
export default App;
